package edu.whut.mall.admin.service.impl;

import edu.whut.mall.admin.service.IProductSellService;
import edu.whut.mall.pojo.mapper.ProductSellMapper;
import edu.whut.mall.common.vo.ProductSellVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-06-07 16:15
 */
@Service
@Slf4j
public class ProductSellServiceImpl implements IProductSellService {

    @Resource
    ProductSellMapper productSellMapper;

    @Override
    public ProductSellVo getProductSell(int productId) {
        return productSellMapper.getProductSellById(productId);
}
}
